package top.yueyazhui.vhr.controller.Chat;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yueyazhui.vhr.model.Hr;
import top.yueyazhui.vhr.service.HrService;

import java.util.List;

@RestController
@RequestMapping("/chat")
@Api(tags = "聊天")
public class ChatController {

    @Autowired
    HrService hrService;

    @GetMapping("/")
    @ApiOperation(value = "查询HR", notes = "查询所有的HR")
    public List<Hr> getAllHrExceptCurrentHr() {
        return hrService.getAllHrExceptCurrentHr();
    }
}
